package GameLogic


//SelectUnitState 选择单位
type selectUnitState struct {
	*genericState
}

func (s *selectUnitState) onUpdate(dt int) {
	cmd, tuple := s.gameUnit.getCommond()
	switch cmd {
	case CMD_SELECTUNIT:
		s.gameUnit.UnitID = int(tuple[1].(int32))
		s.gameUnit.Load()
		s.gameUnit.chageState("idle")
	}
}
